var QueryString = {
    getQueryStringArgs: function () {
        //
        var qs = location.search.length > 0 ? location.search.substring (1) : "";
        var args = {};
        var items = qs.length ? qs.split ("&") : [];
        var item = null;
        var name = null;
        var value = null;
        //
        for (var i = 0; i < items.length; i++) {
            item = items[i].split ("=");
            name = decodeURIComponent (item[0]);
            value = decodeURIComponent (item[1]);

            if (name.length) {
                args[name] = value;
            }
        }
        return args;
    },
    getParameter:function(keyValue) {
        var args = this.getQueryStringArgs();
        if (args[keyValue] != undefined) {
            return args[keyValue];
        } else {
            return "";
        }
    }
}
//var value = QueryString.getParameter("name");